import Vue from 'vue'
import 'mint-ui/lib/style.css';
import { Loadmore, Spinner } from 'mint-ui';
import './cube-ui'
import App from './views/index.vue'
import router from './router/index'
import store from './store'
import './styles/index.less'
import { setToken, resetToken, networkError } from './utils'
import 'amfe-flexible'

Vue.config.productionTip = false
Vue.component(Loadmore.name, Loadmore);
Vue.component(Spinner.name, Spinner);

window.setToken = setToken
window.resetToken = resetToken
window.networkError = networkError

new Vue({
  ...App,
  router,
  store,
  render: h => h(App),
}).$mount('#app')
